#!/bin/bash

apt install keepalived -y

cp -f ./config/keepalived.conf /etc/keepalived/keepalived.conf
cp -f ./config/check_ingress_provider.sh /etc/keepalived/check_ingress_provider.sh

systemctl enable keepalived --now
systemctl restart keepalived